package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: tcz
 * Date: 13-7-6
 * Time: 上午11:00
 */
public class Movie {
    private String id;
    private String name;
    private String year;
    private String director;
    private String rating;

    public Movie(String id, String name, String year, String director, String rating) {
        this.id = id;
        this.name = name;
        this.year = year;
        this.director = director;
        this.rating = rating;
    }

    public Movie(String id, String name, String year, String director) {
        this(id, name, year, director, "N/A");
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getYear() {
        return year;
    }

    public String getDirector() {
        return director;
    }

    public String getRating() {
        return rating;
    }

    public void setRating(String rating) {
        this.rating = rating;
    }
}
